<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    request.setAttribute("basePath", basePath);
%>
<%@ include file="/resources/js/easyui/taglibs.jsp" %>
<%@ include file="/resources/js/wechat/_wechatui.jsp" %>
<%@ include file="/resources/js/easyui/_viewJS.jsp" %>
<!DOCTYPE>
<html>
<head>
    <title>${placeName}${deviceName}</title>
</head>
<body>
<div class="loading"></div>
<!-- header -->
<header>
    <a href="javascript:history.go(-1);" class="top_fh">${placeName} <span style="font-size:0.8rem;">${deviceName}</span></a>
</header>
<!-- header end -->

<div class="page zmxq_page">
    <div class="zmxq_time" style="text-align:center; line-height:3rem;">${stime} 至 ${etime}</div>

    <div class="zmxq_allsr">
        <div class="zmxq_srlist">总收入<em>共计：${detailStatisticsDto.billmoney+detailStatisticsDto.coinmoney+detailStatisticsDto.wechatmoney+detailStatisticsDto.alipaymoney}</em></div>
    </div>

    <div class="zmxq_money">
        <div class="zmxq_srlist">现金+硬币<em>总计：${detailStatisticsDto.billmoney+detailStatisticsDto.coinmoney}</em></div>
    </div>
    <!-- 现金 -->
    <div class="zmxq_xianjin">
        <div class="zmxq_srlist">现金<em>小计：${detailStatisticsDto.billmoney!=null?detailStatisticsDto.billmoney:0}</em></div>
        <div class="zmxj_inner">
            <ul>
                <li>
                    <div class="zmxj_left"><span>1</span>元<i>${detailStatisticsDto.sumOnebalance!=null?detailStatisticsDto.sumOnebalance:0}</i>张</div>
                    <div class="zmxj_right">￥<em>${detailStatisticsDto.sumOnebalance!=null?detailStatisticsDto.sumOnebalance:0}</em></div>
                </li>
                <li>
                    <div class="zmxj_left"><span>5</span>元<i>${detailStatisticsDto.sumFivebalance!=null?detailStatisticsDto.sumFivebalance:0}</i>张</div>
                    <div class="zmxj_right">￥<em>${detailStatisticsDto.sumFivebalance*5}</em></div>
                </li><li>
                <div class="zmxj_left"><span>10</span>元<i>${detailStatisticsDto.sumTenbalance!=null?detailStatisticsDto.sumTenbalance:0}</i>张</div>
                <div class="zmxj_right">￥<em>${detailStatisticsDto.sumTenbalance*10}</em></div>
            </li>
                <li>
                    <div class="zmxj_left"><span>20</span>元<i>${detailStatisticsDto.sumTwentybalance}</i>张</div>
                    <div class="zmxj_right">￥<em>${detailStatisticsDto.sumTwentybalance*20}</em></div>
                </li>
                <li>
                    <div class="zmxj_left"><span>50</span>元<i>${detailStatisticsDto.sumFiftybalance}</i>张</div>
                    <div class="zmxj_right">￥<em>${detailStatisticsDto.sumFiftybalance*50}</em></div>
                </li>
                <li>
                    <div class="zmxj_left"><span>100</span>元<i>${detailStatisticsDto.sumHundredbalance}</i>张</div>
                    <div class="zmxj_right">￥<em>${detailStatisticsDto.sumHundredbalance*100}</em></div>
                </li>
            </ul>
        </div>
    </div>
    <div class="zmxq_yiyuan">
        <div class="zmxq_srlist">一元硬币<em>小计：${detailStatisticsDto.coinmoney!=null?detailStatisticsDto.coinmoney:0}</em></div>
    </div>
    <!-- 其他支付方式 -->
    <div class="zmxq_qitafs" style="margin-top:1rem;">
        <div class="zmxq_srlist">线上支付<em>总计：${detailStatisticsDto.wechatmoney+detailStatisticsDto.alipaymoney}</em></div>
        <div class="zmqitaf_inner">
            <ul>
                <li>
                    <div class="zmxj_left">微信</div>
                    <div class="zmxj_right">￥<em>${detailStatisticsDto.wechatmoney!=null?detailStatisticsDto.wechatmoney:0}</em></div>
                </li>
                <li>
                    <div class="zmxj_left">支付宝</div>
                    <div class="zmxj_right">￥<em>${detailStatisticsDto.alipaymoney!=null?detailStatisticsDto.alipaymoney:0}</em></div>
                </li>
            </ul>
        </div>
    </div>
    <!-- 其他支付方式 end -->
    <!-- 游戏币 -->
    <div class="zmxq_qitafs zmxq_yxb">
        <div class="zmqitaf_inner">
            <ul>
                <li style="border-top:1px solid #EEE; margin-top:0.8rem;">
                    <div class="zmxj_left">游戏币</div>
                    <div class="zmxj_right"><em>${detailStatisticsDto.gamecoinbalnce!=null?detailStatisticsDto.gamecoinbalnce:0}</em></div>
                </li>
                <li>
                    <div class="zmxj_left">出币</div>
                    <div class="zmxj_right"><em>${detailStatisticsDto.coinbalance!=null?detailStatisticsDto.coinbalance:0}</em></div>
                </li>
            </ul>
        </div>
    </div>
    <!-- 游戏币 end-->
    <div class="zmxq_qitafs zmxq_lp">
        <div class="zmqitaf_inner">
            <ul>
                <li style="border-top:1px solid #EEE; margin-top:0.8rem;">
                    <div class="zmxj_left">远程补币</div>
                    <div class="zmxj_right"><em>${detailStatisticsDto.intdata1!=null?detailStatisticsDto.intdata1:0}</em></div>
                </li>
                <li>
                    <div class="zmxj_left">出礼品</div>
                    <div class="zmxj_right"><em>${detailStatisticsDto.giftbalance!=null?detailStatisticsDto.giftbalance:0}</em></div>
                </li>
                <li>
                    <div class="zmxj_left">礼品库存</div>
                    <div class="zmxj_right"><em>0</em></div>
                </li>
            </ul>
        </div>
    </div>

    <div class="todayDetails"><a href="javascript:;" id="today_details">当日明细</a></div>

</div>
</body>
<script type="application/javascript">
    $("#today_details").click(function () {
        window.location.href = "${basePath}wechat/income/accounts/thatdaydetails?placeName="+ encodeURI(encodeURI('${placeName}'))
                + "&deviceSerial=${deviceId}&deviceName=" + encodeURI(encodeURI('${deviceName}'))+"&queryDate=${today}";
    });
</script>
</html>
